try:
    file = open('text1', 'r', encoding='utf-8')
    content = file.read()
except FileNotFoundError:
    print("文件不存在")
else:
    print('读取的文件内容为：', content)
finally:
    # file.close()
    print('文件已关闭')